package 继承案例;

public class student extends studentAndTeacher {
    public void write(){
        System.out.println(getName()+"正在写作业他现在"+getAge()+"岁");
    }
}
